import request from '@/utils/request'

const api = {
        apipath: '/fwlx'
    }
    // 获取查询发文类型
export function getList(params) {
    return request({
        url: api.apipath + '/list',
        method: 'get',
        params: params
    })
}
// 获取发文类型详情
export function getInfo(unid) {
    return request({
        url: api.apipath + '/' + unid,
        method: 'get'
    })
}
// 保存发文类型
export function saveInfo(params) {
    return request({
        url: api.apipath,
        method: 'post',
        data: params
    })
}
// 删除发文类型
export function deleteInfo(params) {
    return request({
        url: api.apipath,
        method: 'delete',
        params: params
    })
}

export const fwlxExport = api.apipath + '/export'